package cn.yj.cgs.dba.mapper;

import cn.yj.annotation.pagehelper.annotation.StartPage;
import cn.yj.annotation.pagehelper.page.Page;
import cn.yj.cgs.dba.entity.UserPackage;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Map;


/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author 永健
 * @since 2021-04-19 16:12:11
 */
public interface UserPackageMapper extends BaseMapper<UserPackage>{

    @StartPage
    List<UserPackage> findList(@Param("map") Map<String, Object> map, @Param("page") Page<UserPackage> page);

    String selectMyUserCode(String taskNo);

    String selectStatusByNo(String userTaskNo);

    UserPackage selectByNo(String taskNo);

    int selectCountByDateForUpdate(@Param("myUserCode") String myUserCode,@Param("date") Date date);
}
